Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/alliance #252

Closed
wants to merge 5 commits into from
Closed

Feat/alliance #252

wants to merge 5 commits into from

Conversation

kate-aleksseeva
Copy link
Contributor

voting script and tests for the next voting changed

Copy link
Contributor

@zuzueeka zuzueeka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the work you've done on this! However, there are areas where the code could be cleaned up for better readability. Some of the redundant parts can be streamlined, and a few sections might benefit from refactoring. Once these adjustments are made, I believe the code will be in great shape.

@@ -0,0 +1,79 @@
"""
Voting 01/10/2024!
Add ET setup for Alliance in stETH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why in stETH?

@@ -0,0 +1,226 @@
"""
Tests for voting 01/10/2024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

08/10


"""

from scripts.vote_2024_10_01_holesky import start_vote
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10_08


def test_vote(helpers, accounts, vote_ids_from_env, stranger, ldo_holder, bypass_events_decoding):
steth = contracts.lido
easy_track = contracts.easy_track
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's better to use addresses in tests than to use contracts

ldo_holder=ldo_holder,
dao_voting=contracts.voting,
)
'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, remove all commented sections


evm_script_factories_after = easy_track.getEVMScriptFactories()

# 1. Add TMC stETH top up EVM script factory address TBA (AllowedRecipientsRegistry address TBA)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steth ;)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also please replace all TBA with addresses

'''

# 2. Add TMC stables top up EVM script factory address TBA (AllowedRecipientsRegistry address TBA, AllowedTokensRegistry address TBA)
assert alliance_ops_top_up_evm_script_factory_new in evm_script_factories_after
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need to check it twice?

assert alliance_ops_top_up_evm_script_factory_new not in evm_script_factories_before

alliance_multisig_acc = accounts.at("xd4090CA1134F8dE1450B8246916F73d212efdEf6", force=True) # Testnet DAO Multisigs
alliance_dai_usdc_contract = accounts.at("0x2eb8e9198e647f80ccf62a5e291bcd4a5a3ca68c", force=True) # Testnet Stablecoins
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's rudiments from the previous launch connected with swaps.
We can't use these addresses here. you have to use alliance_multisig_acc as a receiver

)


alliance_ops_allowed_recipients_registry = interface.AllowedRecipientRegistry(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's better to declare variables in the beginning of tests

Copy link
Contributor

@zuzueeka zuzueeka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

validate_evmscript_factory_removed_event,
)
_
# STETH_TRANSFER_MAX_DELTA = 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

@zuzueeka zuzueeka closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants